package com.ruoyi.statisticalCenter.mapper;

import com.ruoyi.statisticalCenter.domain.ScOutPortWarehouseGrossProfitSheet;
import com.ruoyi.statisticalCenter.domain.vo.ScOutPortWarehouseGrossProfitSheetVo;
import com.ruoyi.statisticalCenter.utils.BigDecimalUtils;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface ScOutPortWarehouseGrossProfitMapper {
    List<ScOutPortWarehouseGrossProfitSheet> collect(ScOutPortWarehouseGrossProfitSheetVo vo);
    //包干费返还
    BigDecimal selectFixedReturn(@Param("updateStartTime") String updateStartTime , @Param("updateEndTime") String updateEndTime );
    BigDecimal transferFee(@Param("startTime") String startTime , @Param("endTime") String endTime );

    /**
     * 根据传入日期，从hq_network_bill_detail表中
     *      取出明细数据添加到sc_out_port_warehouse_gross_profit_sheet_detail表中
     * @param date
     * @return
     */
    int InsertScOutPortWarehouseGrossProfitSheetDetailDataByDates(String date);
}
